<template>
  <div class="daily-summary">
    <span class="date">{{ props.date }}</span>
    <div class="daily-summary__extra">
      <slot name="extra"></slot>
    </div>
  </div>
</template>

<script setup lang="ts">
import { defineProps } from 'vue'

const props = defineProps({
  date: {
    type: String,
    required: true
  }
})
</script>

<style lang="scss">
.daily-summary {
  padding: 0 5px;
  display: flex;
  justify-content: space-between;
  color: gray;
  font-size: 0.9rem;
  font-weight: bold;

  .daily-summary__extra {
    display: flex;
    gap: 5px;
  }
}
</style>
